package com.hong.chapter2;

/**
 * Created by hong on 2018/5/27.
 * 多线程不重复输出数值
 * 此demo存在线程安全问题
 */
public class Bank {
    public static void main(String[] args) {
        TicketWindow t1 = new TicketWindow("1号");
        t1.start();
        TicketWindow t2 = new TicketWindow("2号");
        t2.start();
        TicketWindow t3 = new TicketWindow("3号");
        t3.start();
    }
}
